package com.iotechn.unimall.app.api.plantgoods;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;

@HttpOpenApi(group = "plantgoodsorder", description = "商品")
public interface PlantGoodsOrderService {


    @HttpMethod(description = "首页今日商品接口")
    public Object todayGoods() throws Exception;


    @HttpMethod(description = "查看详情")
    public Object getGoodsById(@NotNull @HttpParam(name = "goodId", type = HttpParamType.COMMON, description = "商品id") Long goodId
    ) throws Exception;

    @HttpMethod(description = "今日商品接口")
    public Object getTodayGoods(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit,
            @HttpParam(name = "areaId", type = HttpParamType.COMMON, description = "区域id") Long areaId,
            @HttpParam(name = "categoryId", type = HttpParamType.COMMON, description = "所属分类") Long categoryId,
            @HttpParam(name = "goodName", type = HttpParamType.COMMON, description = "商品名") String goodName,
            @HttpParam(name = "sPrice", type = HttpParamType.COMMON, description = "价格开始") Double sPrice,
            @HttpParam(name = "ePrice", type = HttpParamType.COMMON, description = "价格结束") Double ePrice

    ) throws Exception;

}
